package com.example.networkinteraction.manager;


import java.util.HashMap;
import java.util.Map;

public enum UrlManager {
    INSTANCE;
    private static final String DEFAUL_URL_KEY = "default_url_key";
    private Map<String, String> urlMap = new HashMap<>();

    public static UrlManager getInstance() {
        return INSTANCE;
    }

    public void setUrl(String urlKey, String urlValue) {
        urlMap.put(urlKey, urlValue);
    }

    public void setUrl(String defaultValue) {
        urlMap.put(DEFAUL_URL_KEY, defaultValue);
    }

    public String getUrl(String urlKey) {
        return urlMap.get(urlKey);
    }

    public String getDefaultUrlKey() {
        return DEFAUL_URL_KEY;
    }
}